<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>支付倒计时</title>
  <style>
      div {
          width: 300px;
          height: 500px;
          background-color: #cccccc;

      }

      button {
          width: 100px;
          height: 50px;
          background-color: aliceblue;
          border: none;
          margin-left: 10px;
      }
  </style>
</head>
<body>
<div>
  <p>商品名称：iPhone 14</p>
  <p>商品价格：￥5999</p>
  <p>商品数量：2</p>
  <p>总价：￥11998</p>

  <button>取消</button>
  <button>支付</button>
</div>
</body>
<script type="text/javascript">
  let btns = document.getElementsByTagName('button');
  btns[1].onclick = function () {
    let res = window.confirm('是否支付？');
    if (res) {
      location.href = './00_支付倒计时.html';
    }
  }
</script>
</html>